/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TEXTOGLOSA")
public class TextoGlosaProteu implements Serializable{

    @Id
    @Column(name="TGLO_ST_CODIGO")
    private String tgloStCodigo;
    @Lob
    @Column(name="TGLO_ST_DESCRICAO")
    private String tgloStDescricao;

    public String getTgloStCodigo() {
        return tgloStCodigo;
    }

    public void setTgloStCodigo(String tgloStCodigo) {
        this.tgloStCodigo = tgloStCodigo;
    }

    public String getTgloStDescricao() {
        return tgloStDescricao;
    }

    public void setTgloStDescricao(String tgloStDescricao) {
        this.tgloStDescricao = tgloStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TextoGlosaProteu other = (TextoGlosaProteu) obj;
        if ((this.tgloStCodigo == null) ? (other.tgloStCodigo != null) : !this.tgloStCodigo.equals(other.tgloStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 13 * hash + (this.tgloStCodigo != null ? this.tgloStCodigo.hashCode() : 0);
        return hash;
    }



}
